home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00108_Script_newTourButton
< prev
next >
Wrap
Text File
|
1999-04-25
|
4KB
|
196 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
-------*This script is not used in this version of the movie*----------
property mySprite, NeutralName, RolloverName, startAnimation, maxSlideSpeed, maxFlashSpeed,¼
AnimationIsOver,planeName,slideSpeed,flashSpeed,memberCount
on new me
set startAnimation = FALSE
set AnimationIsOver = FALSE
set maxSlideSpeed = 0
set maxFlashSpeed = 2
set mySprite = the spriteNum of me
set NeutralName = getNeutralName(me, mySprite)
set RolloverName = NeutralName&"-rol"
set planeName = getPlaneName (me)
end
on getPlaneName me
set Name = NeutralName
repeat with i = the Number of Chars in Name down to 1
if char i of Name <> "_" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
return Name
end
on mouseEnter me
if not AnimationIsOver then
set the member of sprite mySprite = member RolloverName
-- set the member of sprite linkedSprite = member linkedHiliteName
end if
end
on mouseLeave me
if not AnimationIsOver then
set the member of sprite mySprite = member NeutralName
end if
end
on mouseUp me
set startAnimation = TRUE
set memberCount = 0
set slideSpeed = 0
set flashSpeed = 0
end
on getNeutralName me,SpriteNum
set aMember = the member of sprite spriteNum
set Name = the name of member aMember
if Name contains "-" then
repeat with i = the Number of Chars of Name down to 1
if char i of Name <> "-" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
end if
return Name
end
on exitFrame me
if startAnimation then
doAnimation me
end if
if AnimationIsOver then
set the member of sprite mySprite = 19&"-"&planeName
oldScript me
oldMouseUp me
end if
end
on doAnimation me
if memberCount<=14 then
slideButton me
else
flashPlane me
end if
end
on slideButton me
if slideSpeed >= maxSlideSpeed then
set the member of sprite mySprite = memberCount&"-"&planeName
set memberCount = memberCount+1
set slideSpeed = 0
end if
set slideSpeed = slideSpeed+1
end
on flashPlane me
if flashSpeed >= maxFlashSpeed then
set the member of sprite mySprite = memberCount&"-"&planeName
set memberCount = memberCount+1
set flashSpeed = 0
if memberCount > 19 then
set startAnimation = FALSE
set AnimationIsOver = TRUE
-- set memberCount = 0
end if
end if
set flashSpeed = flashSpeed+1
end
on oldScript me
global gFrame, menuController
set gFrame=the frame
sound stop(1)
sound stop(2)
-- updatestage
if the name of member the member of sprite mysprite contains "-rol" then
puppetsound 3,"qtvrstrt"
else
puppetsound 3,"mousedn"
if IsQTVRMovie(gQTVRObj) then
getview
closemovie
else
puppetsprite 22 false
end if
end if
sendAllSprites(#CDSmallMenuPuppetsOff)
sendAllSprites(#CDMenuPuppetsOff)
sendAllSprites(#layoutPuppetsOff)
deselect menuController
-- pass
end
on oldMouseUp me
global Fqtvr
--back to QTVR button
puppetSprite 22, false
resetInfo
if Fqtvr = "" then
set Fqtvr="no"
sound playfile 1,"instr4"
end if
go to "Pexterior"
end